#define _CRT_SECURE_NO_WARNINGS 1

# include"MyVector.h"

void test1()
{
	MyVector<int> v(10);
	for (int i = 0; i < 15; i++)
	{
		v.Push(i);
	}
	cout << v;


}
void test2()
{
	int arr[10] = { 1,4,3,9,5,9,7,8,9,0 };
	MyVector<int> v(arr, 10);
	cout << v;
	cout << v.Count(9) << endl;
}

void test3()
{
	int arr[] = {1.2,-1,-2,3,3};
	int n = sizeof(arr) / sizeof(arr[0]);
	MyVector<int> v(arr, n);
	cout << v;
	v.RemoveNegative();
	cout << v;
}

int main()
{
	test3();
	return 0;
}